/*
 * @Author: xuwejie 1529315455@qq.com
 * @Date: 2023-08-28 14:39:13
 * @LastEditors: xuwejie 1529315455@qq.com
 * @LastEditTime: 2023-09-11 17:23:51
 * @FilePath: \v9\src\api\marketing\marketing.js
 * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 */
import request from "@/utils/request";
// 满减满赠

export function get_full_index(params) {
  return request({
    url: "/full/index",
    method: "get",
    params
  });
}

// 新增活动
export function get_full_add(data) {
  return request({
    url: "/full/add",
    method: "post",
    data: data
  });
}

// 获取商品
export function get_full_getGoodsSpu(params) {
  return request({
    url: "/full/getGoodsSpu",
    method: "get",
    params
  });
}

// 获取商品（新）
export function get_full_getGoodsSpus(params) {
  return request({
    url: "/goods/getSpuCommonList",
    method: "get",
    params
  });
}

// 弹窗获取商品
export function get_full_getUndercarriage(params) {
  return request({
    url: "/full/getUndercarriage",
    method: "get",
    params
  });
}

// 查看活动
export function get_full_info(params) {
  return request({
    url: "/full/info",
    method: "get",
    params
  });
}

// 编辑活动
export function get_full_edit(data) {
  return request({
    url: "/full/edit",
    method: "post",
    data: data
  });
}

// 活动关闭
export function get_full_closeActivity(data) {
  return request({
    url: "/full/closeActivity",
    method: "post",
    data: data
  });
}
